//
// Created by masaikk on 2021/4/29.
//

#ifndef CT_SET1_H
#define CT_SET1_H

#include <set>
#include <iostream>

using namespace std;

class Set1 {
private:
    set<int> set;
public:
    void addElem() {
        this->set.insert(1);
        this->set.insert(1);
        this->set.insert(4);
        this->set.insert(5);
        this->set.insert(1);
        this->set.insert(4);
    };
    void showElems(){
        for(int a: this->set){
            printf("%d\n", a);
        }
        printf("size of this set is %d",this->set.size());
    }
    void execute1(){
        this->addElem();
        this->showElems();
    }
};

#endif //CT_SET1_H
